﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace nave
{
    class Explosao
    {
        public Animacao animaExplosao;
        public Vector2 posicao;
        public Texture2D textura;
        public bool Ativo = true;

        public Explosao(Animacao animacao, Vector2 posicao)
        {
            this.animaExplosao = animacao;
            this.posicao = posicao;
        }

        public Explosao(Texture2D textura, Vector2 posicao)
        {
            this.textura = textura;
            this.posicao = posicao;
        }

        public void Update(GameTime gameTime)
        {
            this.animaExplosao.posicao = posicao;

            this.animaExplosao.Update(gameTime);
        }


        public void Draw(SpriteBatch spriteBatch)
        {
            this.animaExplosao.Draw(spriteBatch);
        }
    }
}
